package com.zzyl.utils;

import java.util.Random;
import java.util.Arrays;
import java.util.List;

public class RandomNicknameGeneratorUtil {

    private static final List<String> prefixes = Arrays.asList("小", "大", "飞", "梦", "云", "风");
    private static final List<String> suffixes = Arrays.asList("龙", "虎", "猫", "狗", "侠", "仙");

    public static void main(String[] args) {
        System.out.println(generateRandomNickname());
    }

    public static String generateRandomNickname() {
        Random random = new Random();
        String prefix = prefixes.get(random.nextInt(prefixes.size()));
        String suffix = suffixes.get(random.nextInt(suffixes.size()));
        return prefix + suffix;
    }
}
